home *** CD-ROM | disk | FTP | other *** search
- 'Program to demonstrate using IN.PUT as an INKEY$ function
-
- ' $INCLUDE: '\INC\DFRAME.INC'
-
- PROGNAME$ = "Input Example"
- VERSION$ = " v1.0"
- EXENAME$ = "EXINPUT"
- INITIALIZE
- CLOSE #1
-
- ' We'll assume there is some code above this, so now we want an answer.
- DIS.PLAY "Your answer? > ", LGREEN, BLACK, 0, 0, 10, 3, 0, 0, 0
-
- ' Get a 5 character maximum response, blue on white, and allow 60 seconds
- ' to answer.
- IN.PUT 5, 60, LBLUE, WHITE
-
- ' Now we'll DIS.PLAY the answer. This will be "-1" if a timeout occurred.
- DIS.PLAY RESPONSE$, LRED, BLACK, 0, 0, 15, 10, 1, 0, 0
- ENTER
- CLRSCRN
- EXIT.DOOR "Y"
- END
-
-